﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wjtour.Common;
using Hjp.FrameWork.Common;

namespace Wjtour.Web.Front
{
    public partial class fooddetail : BasePage
    {
        protected int id = 0;
        private Wjtour.BLL.food_bll _bll = new BLL.food_bll();
        protected Wjtour.Domain.food data = new Wjtour.Domain.food();
        protected List<Wjtour.Domain.resturant> resturants = new List<Domain.resturant>();
        protected List<Wjtour.Domain.food> caiyao = new List<Domain.food>();
        protected List<Wjtour.Domain.food> xiaochi = new List<Domain.food>();

        protected void Page_Load(object sender, EventArgs e)
        {
            id = Utils.StrToInt(Request["id"], 1);
            bindList();
        }

        void bindList()
        {
            data = _bll.Load(id);

            Wjtour.BLL.resturant_bll _hbll = new BLL.resturant_bll();
            resturants = _hbll.GetList(7);

            caiyao = _bll.GetList(10, 1);
            xiaochi = _bll.GetList(7, 2);
        }
    }
}
